package com.candy.oop;

/**
 * @author donglin
 * @Title:
 * @类名: Teacger
 * @date 2020/9/4
 */
public class Teacher {
    private String tName;
    private int tNo;

    public Teacher() {
    }

    public void teaching(){
        System.out.println("我在教java基础");
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public int gettNo() {
        return tNo;
    }

    public void settNo(int tNo) {
        this.tNo = tNo;
    }
}
